package com.sky.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {

    //销售额统计
    Double turnoverStatistics(Map map);

    //用户量统计
    Integer userStatistics(LocalDateTime beginTime, LocalDateTime endTime);

    //订单统计
    Integer ordersStatistics(Map map);

    //销量top10
    List<Map<String,Object>> topStatistics(LocalDateTime beginTime, LocalDateTime endTime);
}
